package com.szholly.pro.watergas_server.bus.controller.mod;

import com.szholly.pro.watergas_server.bus.service.mod.inter.IOcGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 运维分组(控制层)
 * 控制层方法参考
 */

@RestController
@RequestMapping("/oc_group")
public class OcGroupController {

    @Autowired
    IOcGroupService ocGroupService;

    /**
     *
     * @return
     */
    @RequestMapping("/findAll")
    public List findAll(){
        List list = ocGroupService.findAll();
        return list;
    }

}